// 基于template/src/widgets/{{appEntities}}/{{ctrls@FORM}}-form/{{spinalCase ctrl.codeName}}-form-model.ts.hbs生成
import { IEditFormModel, IFormStore, IParam } from '@/core';
function getModel(): IEditFormModel {
    return {
        name: "form",
        caption: "",
        codeName: "MajorStateForm",
        enableAutoSave: false,
        entityCodeName: "IBIZBOOK",
        keyPSAppDEField: "IBIZBOOKId",
        majorPSAppDEField: "IBIZBOOKName",
        cssName: "",
        controlType: "FORM",
        formStyle: "",
        valueRule: getValueRule(),
        createDefaultItems: getCreateDefaultItems(),
        updateDefaultItems: getUpdateDefaultItems(),
        detailModel: getDetailModel(),
        ctrlMsgModel:[
    ],
        uiEngineModel: [
            {
                name: 'engine_form',
                triggerType: 'CTRLEVENT',
                logicType: 'APPVIEWENGINE',
                eventNames: 'LOAD;SAVE;REMOVE',
                scriptCode: ``,
                entityCodeName: '',
                logicName:``
            }
    ]
    }
}
function getValueRule() {
    return [
    ]
}

function getCreateDefaultItems() {
    return [
    ]
}

function getUpdateDefaultItems() {
    return [
    ]
}
function getDetailModel() {
    return {
        formpage1: {
            caption: "基本信息",
            captionItemName: "",
            name: "formpage1",
            codeName: "formpage1",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMPAGE",
            showCaption: false,
            enableAnchor: false,
            showMoreMode: 0,
        },
        group1: {
            caption: "表单分组",
            captionItemName: "",
            name: "group1",
            codeName: "group1",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "GROUPPANEL",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            showMoreItems: [
            ],
            uIActionGroup: {
                extractMode: "",
                caption: "打开文档",
                details: [
                    {
                        caption: "打开文档",
                        uIActionMode: "FRONT",
                        disabled: false,
                        visible: true,
                        uIActionTag: "openDocument",
                        noPrivDisplayMode: 1,
                        dataAccessAction: "OPEN_DOCUMENT",
                        actionTarget: "SINGLEKEY",
                        showCaption: true,
                        showIcon: true,
                        predefinedType: "",
                        actionDECodeName: "IBIZBOOK",
                        
                    },
                    {
                        caption: "打开实体看板文档",
                        uIActionMode: "FRONT",
                        disabled: false,
                        visible: true,
                        uIActionTag: "openKanbanDocument",
                        noPrivDisplayMode: 2,
                        dataAccessAction: "",
                        actionTarget: "NONE",
                        showCaption: true,
                        showIcon: true,
                        predefinedType: "",
                        actionDECodeName: "IBIZBOOK",
                        
                    },
                ],
            },
        },
        grouppanel1: {
            caption: "基础信息",
            captionItemName: "",
            name: "grouppanel1",
            codeName: "grouppanel1",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "GROUPPANEL",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            showMoreItems: [
            ],
        },
        ibizbookname: {
            caption: "图书名称",
            captionItemName: "",
            name: "ibizbookname",
            codeName: "ibizbookname",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMITEM",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            valueFormat: "",
            fieldCodeName: "IBIZBOOKName",
            dataType: "25",
            required: true,
            enableCond: 3,
            ignoreInput: 0,
            convertToCodeItemText: false,
            layout:{parentLayout: 'TABLE_24COL',colMD: 24,},
        },
        type: {
            caption: "图书类型",
            captionItemName: "",
            name: "type",
            codeName: "type",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMITEM",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            valueFormat: "",
            fieldCodeName: "Type",
            dataType: "25",
            required: false,
            enableCond: 3,
            ignoreInput: 3,
            convertToCodeItemText: true,
            layout:{parentLayout: 'TABLE_24COL',colMD: 24,},
        },
        grouppanel2: {
            caption: "主状态按钮",
            captionItemName: "",
            name: "grouppanel2",
            codeName: "grouppanel2",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "GROUPPANEL",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            showMoreItems: [
            ],
        },
        button1: {
            caption: "打开文档",
            captionItemName: "",
            name: "button1",
            codeName: "button1",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "BUTTON",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            uIAction: {
                caption: "打开文档",
                uIActionMode: "FRONT",
                disabled: false,
                visible: true,
                uIActionTag: "openDocument",
                noPrivDisplayMode: 1,
                dataAccessAction: "OPEN_DOCUMENT",
                actionTarget: "SINGLEKEY",
                showCaption: true,
                predefinedType: "",
                actionDECodeName: "IBIZBOOK",
                
            },
        },
    }
}
export const model = getModel();
